"use strict";
exports.__esModule = true;
exports.ZipcodeValidator = exports.regNumbers = void 0;
/* 导出多个成员 */
exports.regNumbers = /^[0-9]+$/;
var ZipcodeValidator = /** @class */ (function () {
    function ZipcodeValidator() {
    }
    ZipcodeValidator.prototype.isAcceptable = function (s) {
        return s.length === 5 && exports.regNumbers.test(s);
    };
    return ZipcodeValidator;
}());
exports.ZipcodeValidator = ZipcodeValidator;
console.log(new ZipcodeValidator().isAcceptable("shit"));
/* 先定义 后导出 */
// class ZipCodeValidator implements StringValidator {
//     isAcceptable(s: string) {
//         return s.length === 5 && numberRegexp.test(s);
//     }
// }
// export { ZipCodeValidator };
// export { ZipCodeValidator as mainValidator };
